import socketioClient, { Socket } from 'socket.io-client';
export type ISocketState = {
    socket: Socket;
};
const initialState: ISocketState = {
    socket: socketioClient('http://192.168.2.5:3000', { transports: ['websocket'] })
};

function socketReducer(state: ISocketState = initialState, action: string): ISocketState {
    switch (action) {
        case 'test':
            break;
    
        default:
            break;
    }
    return state;
}

export { socketReducer as default, initialState as socketioState };
